package com.example.fresh_market.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AuthRespVO {
    private String token;
    private String refreshToken;
    private Long userId;
    private Long expireAt;

    public static AuthRespVO of(String token, String refreshToken, Long userId) {
        return of(token, refreshToken, userId, 0);
    }

    public static AuthRespVO of(String token, String refreshToken, Long userId, long expireAt) {
        return new AuthRespVO(token, refreshToken, userId, expireAt);
    }
}
